home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 076-100 / disk_098 / thai / thai_font.c < prev    next >
C/C++ Source or Header  |  1992-05-06  |  668b  |  38 lines

  1.  
  2. #include "quiz.h"
  3.  
  4.  
  5. extern APTR            OpenLibrary ();
  6. struct TextFont *    OpenDiskFont ();
  7.  
  8. APTR                DiskfontBase;
  9. struct TextFont *    thai_font;
  10. struct TextAttr        thai_textattr;
  11.  
  12.  
  13.  
  14. open_thai_font ()
  15. {
  16.     DiskfontBase = OpenLibrary ( "diskfont.library" , 0L );
  17.     if ( DiskfontBase == NULL )
  18.         return ( FALSE );
  19.     thai_textattr.ta_Name = (UBYTE*) "Thai.font";
  20.     thai_textattr.ta_YSize = 22;
  21.     thai_textattr.ta_Style = 0;
  22.     thai_textattr.ta_Flags = 0;
  23.     thai_font = OpenDiskFont ( &thai_textattr );
  24.     if ( thai_font == NULL ) {
  25.         CloseLibrary ( DiskfontBase );
  26.         return ( FALSE );
  27.     }
  28.     return ( TRUE );
  29. }
  30.  
  31.  
  32. close_thai_font ()
  33. {
  34.     CloseFont ( thai_font );
  35.     CloseLibrary ( DiskfontBase );
  36. }
  37.  
  38.